/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLL;

import DAL.DALInventory;
import DTO.DTOInventory;
import java.util.Date;

/**
 *
 * @author Pham
 */
public class BLLInventory {
    DALInventory dalInv;
    
    public BLLInventory()
    {
        dalInv = new DALInventory();
    }
    
    //method get quantity 
    public DTOInventory getQuantity(int id, Date date)
    {
        return dalInv.getQuantityofInventory(id, date);
    }
    
    //method insert new row in inventory
    public boolean insertNewInventory(DTOInventory dtoInv)
    {
        return dalInv.insertRowInventory(dtoInv);
    }
    
    //method get current inventory
    public DTOInventory getCurrentInv(int ProId)
    {
        return dalInv.getCurrentInventory(ProId);
    }
}
